@extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">
<style>
  tr{
    text-align:center;
  }
  tr th{
    text-align:center;
  }

  .nbsp{
    text-align:left;
  }
</style>


@endsection
@section('body')
<div class='container'>
<div id='Common'>
 @include('Common/tip')

 </div>


<script>
  //一次性定时器 让错误提示2秒后消失
 setTimeout(function () {
      

      var common = document.getElementById('Common');

      common.style.display = 'none';

    }, 2000);
</script>

<table class="table table-condensed table-striped">
  <caption>商品描述管理</caption>
  <thead>
    <tr>
    
      <th>序号</th>
      <th>商品名</th>
      <th>商品描述</th>
      <th class="oprit">操作</th>
    </tr>
</thead>
<tbody>

@foreach($text as $k => $v)
    <tr>
          <td>{{$k+1}}</td>
          <td>{{$v->gname}}</td>
          <td>{{$v->attribute}}</td>  
          <td>
          <a  class="btn btn-success" href="{{url('/admin/Text/edit',$v->id)}}">修改描述</a>
         <a  class="btn btn-success" href="{{url('/admin/Text/delete',$v->id)}}">删除</a>
         </td>
 
      </tr>
     
 @endforeach  
    
    </tr>
  </tbody>
</table>
 {{$text->links()}}


</div>
@endsection